package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.NgsWkfjq2;
import com.zhijian.medical.entity.vo.request.NgsWkfjq2SearchVo;
import com.zhijian.medical.entity.vo.response.NgsWkfjq2Vo;

import java.util.List;

public interface NgsWkfjq2Mapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验id删除
     *
     * @param ngsId
     * @return
     */
    int deleteByNgsId(Long ngsId);

    int insert(NgsWkfjq2 record);

    int insertSelective(NgsWkfjq2 record);

    NgsWkfjq2 selectByPrimaryKey(Long id);

    /**
     * 实验id查询po
     *
     * @param ngsId
     * @return
     */
    NgsWkfjq2 selectByNgsId(Long ngsId);

    int updateByPrimaryKeySelective(NgsWkfjq2 record);

    int updateByPrimaryKey(NgsWkfjq2 record);

    int count(NgsWkfjq2SearchVo ngsWkfjq2SearchVo);

    List<NgsWkfjq2Vo> selectList(NgsWkfjq2SearchVo ngsWkfjq2SearchVo);

    NgsWkfjq2Vo selectVoById(Long id);

    /**
     * 实验id查询vo
     *
     * @param ngsId
     * @return
     */
    NgsWkfjq2Vo selectVoByNgsId(Long ngsId);
}